<?php

namespace app\apishop\validate;

use think\Validate;

class Supplier extends Validate{
    
    protected $rule = [
        'supplier_id' => 'require',
        'day' => 'require',
        'send_area' => 'require'
    ];
    
    protected $message = [
        'supplier_id.require' => '未登录',
        'day.require' => '未选择日期',
        'send_area.require' => '未选择配送区域'
    ];
    
    protected  $scene = [
        'add_address' => ['supplier_id','day','send_area'],
        'del_address' => ['supplier_id','day']
    ];
}

